@mixin in-dark {
  [data-o-theme='dark'] {
    @content;
  }
}

@mixin img-in-dark {
  filter: brightness(80%) grayscale(20%) contrast(1.2);
}

@mixin scrollbar {
  &::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: var(--o-color-fill1);
  }

  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: var(--o-color-fill1);
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--o-color-control1);
  }
}
